{% extends "product/base.html" %}{% load i18n %} 
{% block title %}{% trans "Join the order" %}{% endblock %}
{% block content %}
<div>
	{% if user and form %}
	<form action="." method="post">
		{% if form.error_dict %}
		<p class="error">
			{% trans "Please correct the errors below." %} {{form.error_dict}}
		</p>
		{% endif %}
		<table>
			<tbody>
				<tr>
					<td>
						{% trans "vender order:" %}
					</td>
					<td>
						{{order.title}}[{{order.product.name}}]
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<td>
						{% trans "vender has_stored_product:" %}
					</td>
					<td>
						{{form.has_stored_product}}
					</td>
					<td>
						{% if form.has_stored_product.errors %} {{form.has_stored_product.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "vender deliver_type:" %}
					</td>
					<td>
						{{form.deliver_type}}
					</td>
					<td>
						{% if form.deliver_type.errors %} {{form.deliver_type.errors.0}} {% endif %}
					</td>
				</tr>
				<tr>
					<td>
						{% trans "vender payment_type:" %}
					</td>
					<td>
						{{form.payment_type}}
					</td>
					<td>
						{% if form.payment_type.errors %} {{form.payment_type.errors.0}} {% endif %}
					</td>
				</tr>
			</tbody>
		</table>
		<input type="submit" value="{% trans "submit" %}" />
	</form>
	{% endif %}
</div>
{% endblock %}
